package com.quxiang.pay.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.quxiang.pay.service.TaskService;

/**
 * 计算代理返点
 * 
 * @author liulu
 *
 */
@Component
public class ComputeAgentXunleMoney {

	private Logger logger = LoggerFactory.getLogger(ComputeAgentXunleMoney.class);

	@Autowired
	private TaskService taskService;

	public void execute() throws Exception {

		try {
			taskService.computeCymj();
		} catch (Exception e) {
			logger.error("代理计算 cymj  error = {}", e);
		}
	}

}
